import request from '@/utils/request'

// 查询陪护豆充值单位列表
export function listRechargeUnit(query) {
  return request({
    url: '/biz/rechargeUnit/list',
    method: 'get',
    params: query
  })
}

// 查询陪护豆充值单位详细
export function getRechargeUnit(id) {
  return request({
    url: '/biz/rechargeUnit/' + id,
    method: 'get'
  })
}

// 新增陪护豆充值单位
export function addRechargeUnit(data) {
  return request({
    url: '/biz/rechargeUnit',
    method: 'post',
    data: data
  })
}

// 修改陪护豆充值单位
export function updateRechargeUnit(data) {
  return request({
    url: '/biz/rechargeUnit',
    method: 'put',
    data: data
  })
}

// 删除陪护豆充值单位
export function delRechargeUnit(id) {
  return request({
    url: '/biz/rechargeUnit/' + id,
    method: 'delete'
  })
}

// 启用禁用陪护豆充值单位
export function changeStatus(data) {
  return request({
    url: '/biz/rechargeUnit/changeStatus',
    method: 'put',
    data: data
  })
}